const Colors = {
    White: '#FFFFFF',
    Red: '#FF626F',
    Green: '#B4C503',
    Blue: '#7FCFFF',
    Cyan: '#B1EDED',
    Purple: '#DCBAF6',
    Orange: '#FB9879',
    Black: '#000000',
};

class BallComponent extends Component {
    constructor(color) {
        super();
        this.color = color;
    }
}

const hexToRgb = hex =>
    hex.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i
        , (m, r, g, b) => '#' + r + r + g + g + b + b)
        .substring(1).match(/.{2}/g)
        .map(x => parseInt(x, 16));